starlette: add missing configuration params from ASGI Middleware#4566
starlette: add missing configuration params from ASGI Middleware#4566Fiery-Fenix wants to merge 4 commits into
Conversation
|
Thanks for the PR! Just a heads-up: we no longer update Please add the appropriate changelog fragment for this change instead of editing |
47090ed to
d9081d4
Compare
d9081d4 to
6a36ed4
Compare
Thanks for note! I have updated PR with correct changelog fragment |
tammy-baylis-swi
left a comment
There was a problem hiding this comment.
This lgtm!
The typecheck failure is coming from genAI instrumentation, not this code. Continuing to use schema url for 1.11.0 makes sense as Starlette instrumentation hasn't yet migrated to new semconv. I appreciate the tests.
Description
Unlike FastAPI instrumentation, Starlette manual instrumentation is missing several configuration parameters available in underlying ASGI
OpenTelemetryMiddleware.This PR is adding passthrough of the following
OpenTelemetryMiddlewareparameters to the Starletteinstrument_appfunction:excluded_urlshttp_capture_headers_server_requesthttp_capture_headers_server_responsehttp_capture_headers_sanitize_fieldsexclude_spansChanges in this PR are mostly port of respective functionality from FastAPI inbstrumentation.
Additional tests were added to high-level coverage of the new configuration parameters.
Partially fixing #3725, at least for manual instrumentation
Type of change
How Has This Been Tested?
Tests has passed for all supported platforms:
Does This PR Require a Core Repo Change?
Checklist:
See contributing.md for styleguide, changelog guidelines, and more.